package com.cwj.springboot_study.config;

import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
import org.apache.ibatis.reflection.MetaObject;
import org.springframework.stereotype.Component;

/**
 * @author wujie.chen
 * 2022/10/26 10:50
 */
@Component
public class MyMetaObjectHandler implements MetaObjectHandler {
    @Override
    public void insertFill(MetaObject metaObject) {
        this.strictInsertFill(metaObject, "deleted", () -> false, Boolean.class);
    }

    @Override
    public void updateFill(MetaObject metaObject) {

    }
}
